import request from '@/utils/request'

// 查询接口定义管理列表
export function listApidefinition(query) {
  return request({
    url: '/business/apidefinition/list',
    method: 'get',
    params: query
  })
}

// 查询接口定义管理详细
export function getApidefinition(id) {
  return request({
    url: '/business/apidefinition/' + id,
    method: 'get'
  })
}

// 新增接口定义管理
export function addApidefinition(data) {
  return request({
    url: '/business/apidefinition',
    method: 'post',
    data: data
  })
}

// 修改接口定义管理
export function updateApidefinition(data) {
  return request({
    url: '/business/apidefinition',
    method: 'put',
    data: data
  })
}

// 删除接口定义管理
export function delApidefinition(id) {
  return request({
    url: '/business/apidefinition/' + id,
    method: 'delete'
  })
}
